.class Les/xy$m$a;
.super Ljava/lang/Object;
.source "EditMenuItemProvider.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/xy$m;->a(Les/s80;II)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/xy$m;


# direct methods
.method constructor <init>(Les/xy$m;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/xy$m$a;->a:Les/xy$m;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 1
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v0, v0, Les/xy$m;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    .line 2
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v0, v0, Les/xy$m;->c:Les/a70;

    invoke-virtual {v0}, Les/a70;->C()Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_5

    .line 3
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_5

    .line 4
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v3, v3, Les/xy$m;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const-class v4, Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 5
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    new-array v3, v3, [Ljava/lang/String;

    .line 6
    :goto_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    if-ge v1, v4, :cond_1

    .line 7
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->B2(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 8
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->V(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v1

    goto :goto_1

    .line 9
    :cond_0
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    aput-object v4, v3, v1

    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    const-string v1, "hasplaylist"

    .line 10
    invoke-virtual {v2, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 11
    invoke-static {v3}, Lcom/estrongs/android/pop/app/PopAudioPlayer;->b([Ljava/lang/String;)V

    .line 12
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-boolean v0, v0, Les/xy$m;->d:Z

    const-string v1, "isadd"

    invoke-virtual {v2, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 13
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-boolean v0, v0, Les/xy$m;->e:Z

    if-eqz v0, :cond_2

    const-string v1, "Chromecast"

    .line 14
    invoke-virtual {v2, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 15
    :cond_2
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-boolean v1, v0, Les/xy$m;->d:Z

    if-eqz v1, :cond_4

    .line 16
    invoke-static {}, Lcom/estrongs/android/pop/app/AudioPlayerService$MediaButtonReceiver;->a()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 17
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v0, v0, Les/xy$m;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const-class v1, Lcom/estrongs/android/pop/app/AudioPlayerService;

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 18
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v0, v0, Les/xy$m;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0, v2}, Landroid/app/Activity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_2

    .line 19
    :cond_3
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v0, v0, Les/xy$m;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_2

    .line 20
    :cond_4
    iget-object v0, v0, Les/xy$m;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_2

    .line 21
    :cond_5
    iget-object v0, p0, Les/xy$m$a;->a:Les/xy$m;

    iget-object v0, v0, Les/xy$m;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const v2, 0x7f110727

    .line 22
    invoke-virtual {v0, v2}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    .line 23
    invoke-static {v0, v2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_2
    return-void
.end method
